package com.code.day11DaiMaKuai.ChouXiang;

public class Test {

    public static void main(String[] args) {
       mothod(new USB() {
           @Override
           public void open() {
           System.out.println("打开了");
           }
       });

    }

//    用抽象去接受
    public static void mothod(USB usb){
       usb.open();
    }
}
